<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>display: none elements should be ignored</title>
    <style media="screen">
      /* interface */

      @media screen {

        body {
          background-color: whitesmoke;
        }

        .pagedjs_page {
          margin-bottom: 20px;
          flex: none;
          box-shadow: 0 0 0 1px rgba(0, 0,0,0.2);
          background-color: white;
        }

        .pagedjs_pages {
          width: calc(var(--pagedjs-width) * 2);
          display: flex;
          flex-direction: row;
          flex-wrap: wrap;
          justify-content: flex-start;
          transform-origin: 0 0;
          margin: 0 auto;
        }

        .pagedjs_first_page {
          margin-left: 50%;
        }
      }
    </style>
    <style>
        @page {
          size: A5;
          margin: 20mm 20mm;

          @bottom-left{
            content: counter(page);
          }
          @top-left {
            content: element(chapter-title);
          }
        }

        #cover {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: 100%;
            break-after: page;
            align-items: flex-end;
        }
        #displayNoneStyle {
            display: flex;
        }
        div#displayNoneStyle {
            display: none;
        }
        #content {
            break-after: page;
        }
    </style>
</head>
<body>
<div id="cover" class="title-page">
    <h1>Title</h1>
</div>
<div id="displayNoneInlineStyle" style="display: none;"></div>
<div id="content">Content</div>
<div id="displayNoneStyle"></div>
<script src="../../../dist/paged.polyfill.js"></script>
</body>
</html>
